package org.example.order.service;

import org.example.order.entity.CartItem;
import org.example.order.entity.Order;

import java.util.List;

public interface CartService {
    void addToCart(Long userId, Long productId, Integer quantity);
    void updateQuantity(Long userId, Long productId, Integer quantity);
    void removeFromCart(Long userId, Long productId);
    List<CartItem> getCartList(Long userId);
    void clearCart(Long userId);
    Order submitOrder(Long userId, String receiverAddress, String receiverName, String receiverPhone, String remark);
}